Handle TOGGLE/RADIOBUTTON as well. (#68201, Damon Chaplin.)
authorOwen Taylor <otaylor@redhat.com>
Tue, 8 Jan 2002 23:05:46 +0000 (23:05 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 8 Jan 2002 23:05:46 +0000 (23:05 +0000)
Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)

* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktoolbar.c

index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 8ffd41af97b54136215ab27648f2e091bbe591f0..f5ec51db7321560c2c0768e424c417549e5dacc2 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
+       Handle TOGGLE/RADIOBUTTON as well. (#68201,
+       Damon Chaplin.)
+
+       * gtk/gtktoolbar.c (get_first_child): Fix stupid 
+       bug, just introduced.
+
 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
index 9c9b3fe76c7333c30e0eed350fe806ec2b9e5a20..5517417bf881e7747dcb76fa4d62f9829ca4dcad 100644 (file)
@@ -981,7 +981,9 @@ gtk_toolbar_set_icon_size (GtkToolbar  *toolbar,
   for (children = toolbar->children; children; children = children->next)
     {
       child = children->data;
-      if (child->type == GTK_TOOLBAR_CHILD_BUTTON &&
+      if ((child->type == GTK_TOOLBAR_CHILD_BUTTON ||
+          child->type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON ||
+          child->type == GTK_TOOLBAR_CHILD_RADIOBUTTON) &&
          GTK_IS_IMAGE (child->icon))
        {
          image = GTK_IMAGE (child->icon);
@@ -1605,7 +1607,7 @@ gtk_real_toolbar_orientation_changed (GtkToolbar     *toolbar,
 static GtkWidget *
 get_first_child (GtkContainer *container)
 {
-  GList *children = gtk_container_get_children (children);
+  GList *children = gtk_container_get_children (container);
   GtkWidget *result = children ? children->data : NULL;
   g_list_free (children);